'**SUMMARY**
This is a quick way to save all the images in a data set.
Or to Display in webInterface.
If you didn\'t specify a path one will randomly be generated.
To see the location the files are being saved to then pass
verbose = True.
**PARAMETERS**
* *destination* - path to which images should be saved, or name of gif
* file. If this ends in .gif, the pictures will be saved accordingly.
* *dt* - time between frames, for creating gif files.
* *verbose* - print the path of the saved files to the console.
* *displaytype* - the method use for saving or displaying images.
valid values are:
* \'notebook\' - display to the ipython notebook.
* None - save to a temporary file.
**RETURNS**
Nothing.
**EXAMPLE**
>>> imgs = ImageSet()
>>> imgs.download("ninjas")
>>> imgs.save(destination="ninjas_folder", verbose=True)
>>> imgs.save(destination="ninjas.gif", verbose=True)'

def save(self, destination=None, dt=0.2, verbose=False, displaytype=None):

    if (displaytype == 'notebook'):
        try:
            from IPython.core.display import Image as IPImage
        except ImportError:
            print 'You    need    IPython    Notebooks    to    use    this    display    mode'
            return
        from IPython.core import display as Idisplay
        for i in self:
            tf = tempfile.NamedTemporaryFile(suffix='.png')
            loc = tf.name
            tf.close()
            i.save(loc)
            Idisplay.display(IPImage(filename=loc))
            return
    elif destination:
        if destination.endswith('.gif'):
            return self._write_gif(destination, dt)
        else:
            for i in self:
                i.save(path=destination, temp=True, verbose=verbose)
    else:
        for i in self:
            i.save(verbose=verbose)
