Scope URL to directive and format SVG image