Fix problem with changing graphs

Creating a new <svg> element on each call of "get_svg_element"