Small fixes to solve memory leaks, floatArray2cvImage needs work.