code: def saveas(self, filename, overwrite=True, hdf5=False,
                 copymask=True, newmaskname="", newtileshape=()):
          
          self._saveas(filename, overwrite, hdf5,
                       copymask, newmaskname,
                       newtileshape)
docs: Write the image to disk.
  
          Note that the created disk file is a snapshot, so it is not updated
          for possible later changes in the image object.
  
          `overwrite`
            If False, an exception is raised if the new image file already exists.
            Default is True.
          `ashdf5`
            If True, the image is created in HDF5 format, otherwise in casacore
            format. Default is casacore format.
          `copymask`
            By default the mask is written as well if the image has a mask.
          'newmaskname`
            If the mask is written, the name is the same the original or
            `mask0` if the original mask has no name. Using this argument a
            different mask name can be given.
          `tileshape`
            Advanced users can give a new tile shape. See the :mod:`tables`
            module for more information about Tiled Storage Managers.