finish the image update,next to add validation