format restart for aims
fixed clustering script
added possibility to choose images from trajectory