add big endian tiff support

Hi,

According to http://paulbourke.net/dataformats/tiff/ Little Endian TIFF starts with `II` and Big Endian with `MM`

So the first 4 bytes can be `73 73 42 0` or `77 77 0 42`

This patch adds big endian tiff detection