cleanup compositing order code. also moved it to mainRenderer