created function drawClipBackground in renderer.js.