Saving output video.
Adding in code to header file for background averaging. Background averaging not implemented yet.