Added save tiff functionality (had to separate out rotate_image())