Refactored OpenNICapture class