Speeds up blend mode resolution
Merge pull request #843 from yurydelendik/speedup-blendmode

Speeds up blend mode resolution