correction on image upload