Refactor opencv to use new driver interfaces