Extract PCX decoding from header parsing.