Added the possibility of recording a video of the output plots