Change images to HTML figures