Copy rectangle: implement Invert mask