update graphics card detection code