adds support for multiple paths
supports rectangles and rounded rectangles