added big-endian mode for PFM files