Refactored OpenCV as crate