Fix bug on to_cv_mat
Fix width(), height(), depth() function (these functions will be deleted)