added pgm output for integer image

added PgmFile::write(const IntImage& anImg) for integer image
used for connected components image persistence