Fix problem with image upload