Added support for OpenGL graphic drivers and painters