added big-endian support for PFM file.