better implementation for drawing svg objects strokes and fills the objects properly including non-zero, none stroke, line join, line cap, line miterlimit