Fixed an image upload bug.