both of your proposals work now as expected
I will stick with the $image->read() method, as it feels more straightforward to me.
but I would suggest to update the svg() docs (when there is some time left ) because I assume other people will be confused, too.
or a short cookbook episode showing the use of image files in templates in general?
for me SVGs are crucial elements of websites as I use thsi format for all icons and even some logos.