adds support for clipPath and mask