Better implementation of luma
Merge pull request #1148 from Synchro/luma

Better implementation of luma