Handle 16-bit binary PGM images