converts uiimage to mat and vice versa
modified 494c50
Merge into master