update upload image method