Adding full svg support to diagrams