Made final changes to have tiff files handled as object