Add example overlay.
Fix overlay calculations with rect.