'Works similarly to the normal writeto(), but prepends a default
`PrimaryHDU` are required by extension HDUs (which cannot stand on
their own).
.. versionchanged:: 1.3
``overwrite`` replaces the deprecated ``clobber`` argument.'

@deprecated_renamed_argument('clobber', 'overwrite', '2.0')
def writeto(self, name, output_verify='exception', overwrite=False, checksum=False):

    from .hdulist import HDUList
    from .image import PrimaryHDU
    hdulist = HDUList([PrimaryHDU(), self])
    hdulist.writeto(name, output_verify, overwrite=overwrite, checksum=checksum)
