add float_data support in demo_compute_image_mean