Supporting lossless compression of TIFFs