Added antialiasing and double-buffering toggles.