Adding ability to persist frames to disk