Repair the image upload