added optimized compositing engine. not tested, but compiles