new (untested) function to add frames to a volume file