fixing image upload issue