PGMFormat: corrected endianness

Per the PGM spec (http://netpbm.sourceforge.net/doc/pgm.html),
multi-byte PGM datasets should be stored big-endian.

Fixed to match the spec.

Closes #114.