Modularized the frame-drawing functions, to make it easier to swap what's being displayed.