extract Layer drawing utilities from RenderOverlay into BasicOverlay