Fix leak

Fix potential memory leak in compute_image_mean.cpp when using float_data. Debugged using Valgrind.

compute_image_mean.bin with float data leaks memory. Memory usage reaches close to 100G at 980000 data-points and keeps increasing.