Added outer bounding box and grid for debugging
Done the same for the rectangle