refine interface of the upload image feature.