Made the frame-drawing mechanism even more modular, and added a toggle that displays some diagnostics in non-overlapping frames.