Set bits_per_raw_sample when decoding pnm.