Retinex algorithm for VapourSynth