polish the image uploader code