Added support for saving as original file type

Does not keep .GIF animation frames nor does it keep .PNG transparency