added progress bar for uploading images