fixed image upload issue