Add debug mode with bounding rectangles.