Add support for reading ASCII PPM (PBM, PGM, PPM) format (magic number P1, P2, P3)