changed handling tif files