moved content mode definitions to the definition of the graphics object