PBJVideoWriter, split out file writing for future undo support and readability, fixes GH-57