Moved the graphics methods out into a GraphicsUtil class