1. Storing figures as PNG file.
2. Chopping of trajectory to get the first crossing.