Now saves fileformat of the image.