Adds proper handling of WebGL Lost context/Regained context