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