testing pgm images