added new option to toggleGraphics