Image loading for PGM image files.
