Previously we dispatched calls to different drawing function with a bunch of if statements in the main draw function. Use a stack of drawing functions instead.