Fix to properly choose the desired OpenNI2 resolution.
Credit goes to ​Kenzaburo Miyawaki @ Osaka Institute of Technology