opencv: make jasper dependency optional

Closes #875.