Saving dist from dagre-d3