added --opengl command line option