Visualizing by saving images to look at swarm trend, peaks is giving errors