Committing temporary file but link issues with TIFF