Minor fix to image upload