Added GraphicsObject class and changed draw to be a GraphicsObject.