polish the image upload system