rewrite main of combined_clustering to write visual features to json