Added w-matting code
Merge branch 'wmatting'