How to change the process of upload the image file?