update html and img