added ctx.arc, fixing draw stacs, cosmetics
moving polyline gen to polyline util