added tiff image rotation