Add ability to record frames to a video file (mkv); refactor window creation into separate class