modes redesigned to inherit from classes in render2d package, big graphics update