Drawing an SVG image into a <canvas> that is not in the DOM draws the wrong region