Minimal support for reading PGM format
Support reading all PGM files
Fixed: -condgrayscale didn't work when reading MIFF format