added reading of pgm image sequences