modified upload image