That’s exactly how it’s supposed to work…in fact you don’t even need the span.
Instead of an image, you have a
use…it’s just an HTML element like any other.
If you don’t want to style the
use at any point you can still use an image (and SVG image) but if you want fine grain control then a use is the best option.
Chris covers this in his SVG Lodge course which is now free.