Modify image to upload