Add protection to read *.tif images.