Compared methods
The output shows an img tag with a data URI, a CSS background-image class, and the inline SVG source.
How to choose
Use img for simple standalone assets, CSS backgrounds for decorative artwork, and inline SVG when you need CSS access to internal paths.