Draws an SVG path onto a canvas context.