Added background mask demo code.