refactored border radius calculation
background clipping support
switched background rendering to use patterns