almost fixed:) Tiff is being output!