Added saveFrameForVideo