How an image is saved in order to reduce the file size