Replace an `<img>` element with an inline SVG.