pnm: Add ASCII decoding support