fixed tiff bugs with compressed 3 channel files and xml files