Add optional OpenCV support