added progress bar to image uploading