Display 16-bit PGMs with custom byte order

Take system endianness and user-specified image endianness into account.

http://netpbm.sourceforge.net/doc/pamendian.html