fix for tif file handling