added progress block to the upload of the image data