! fix pgm paths
+ prepare to write ImageData instance as PGM