I am looking to alter the metadata of a PGM image file. More specifically, I would like to edit somehow the metadata of the PGM file such that the resolution is read as 500dpi