Requires an HTML 5-compliant browser

Gear image generation code from http://jsbin.com/oresos/latest