changed pic format to png, added kmeans clustering