Fix image upload error