read tiff, process, write to another tiff