Various bugfixes, resized OpenCV window.