Try to fix compositing operators on the viewer with no success.
Refactored code a little