Issue #171: using visible rect, not algorithm rect, for offscreen testing