methods to generate svg paths/shapes can now take a parameter to set any attributes instead of just the style attibute