added support for gray scale images in the PFM file format.