Display video and generate .jpg files every 100 frames