Added option to use libtiff library instead of PIL

The standard PIL only works on integer TIFFs, whereas many x-ray
detectors store floating-point TIFFs.