Tiff implementation (2)

Only the 'Tiff files corrections' commit has to be merged. The other ones are already done.