Added tree->svg function