'**SUMMARY**
Reassign the image of this feature and return an updated copy of the feature.
**PARAMETERS**
* *img* - the new image to which to assign the feature.
.. Warning::
THIS DOES NOT PERFORM A SIZE CHECK. IF YOUR NEW IMAGE IS NOT THE EXACT SAME SIZE YOU WILL CERTAINLY CAUSE ERRORS.
**EXAMPLE**
>>> img = Image("lenna")
>>> img2 = img.invert()
>>> l = img.findLines()
>>> l2 = img.reassignImage(img2)
>>> l2.show()'

def reassign(self, img):

    retVal = copy.deepcopy(self)
    if ((self.image.width != img.width) or (self.image.height != img.height)):
        warnings.warn("DON'T    REASSIGN    IMAGES    OF    DIFFERENT    SIZES")
    retVal.image = img
    return retVal
