decode raw to tiff