invert now works on the selected area