fixed bug in applyMask
Merge pull request #8 from denniskaselow/patch-1

fixed bug in applyMask