Fix double clip for borders
Better choice of the transition point
Fix offset
Draw real ellipse arcs instead of bezier curves