Add the luminance channel
Add the mask channel to the compositor functions
Add the mask channel on the renderer
Use the real channel instead of being always ALPHA
Add the luminance to alpha for argb8888
Simplify the luminance algos