in order to load a pgm image i read the header and seek to the data beginning from the end of the file
the hologram images seem to be read properly now
again i forgot to subtract the offset of 100 before dividing by the exposure time