render
Paint the SVG into canvas; ctm maps the (0,0)-(width,height) viewport to device space.
loadResource resolves an <image href> that points at another file, relative to wherever this SVG came from. Without it only data: images draw, which is what a self-contained file uses.