In progress support for reading 12 bit tiff images

Fixes #414. 

 [] Needs tested on Bigendian systems.  
 [] Should be tested with libtiff as well.