Adding functionality to save (almost) self-contained version of visualization