def __init__(self, hdu, name=None):
self.header = hdu.header<EOL>self.data = hdu.data<EOL>self.wcs = WCS(hdu.header)<EOL>self.name = name<EOL>
Initialize an image.

Parameters
----------

hdu : a PrimaryHDU file
    FITS file