implemented saving a video