Extracted the graphics code to the Graphics model and added resizing of
the display window.