Minor fix for image upload.