Add detect graphic mode