Reverted some changes for clipping and image handling.
Added anti-aliased shapes configurable property to SharedContext.
Patterned borders are converted to a Shape and drawn using 'fill'. Rendering them this way allows sub-pixel placement, which looks much nicer with anti-aliasing on, and does away with a clip hack.