Moved OpenCV into a class