pcx: round up in bits->bytes conversion in a buffer size check