takes random number of pictures for the gif
adds call to exit() in the main app