Draw a gear / cogwheel to HTML5 Canvas