Fixed clipping bug.

Fixed unwanted clipping on the masked object when inverted.
Merge pull request #1 from XIDA/master

Fixed clipping bug.