added generic functions for creating svgs