removing .pgm