add a function which can save raw image to TIFF Format