"overlays"?

You should get the intersection of the brush-stroked outline with the rectangle. If you do not that is a bug.

Phil