Make every renderer have a painter

Rename the generic painter to shape painter
Create a simple g painter that will only take into account the visiblity
Add a shape painter on the svg element
Set the visibility on the g element
Make sure to initialize the ref counting