Moved all graphics-related logic to a new GraphicsManager class