beginning to filter centroids
prepared to be run from server
delete take_pic.cpp