save image and upload image