added compile-time option for global compositing order. has subtle artifacts