Fix thumbnails of TIF images