update an image