Fix for image upload