add a function which can save image to TIFF file