add image update function