fixed image upload problem