small tiff write fix

from recent reworking