Fix to_cv_mat() function to work with custom stride array