pcx: use the bytestream2 API for reading from input