Migrate graphics mode options to flags