clip paths to document bounds too

This also allow the setting to be contolled from the renderer