Basic image processing with opencv and sending back result to cordova