clone of https://gitorious.org/riemanncycles/cyclepainter/s