Added functionality to take screenshots of the video midstream