Split line and polygon drawing.
Add anti-aliased line drawing.