[bugfix] Fix error in imagecopy_self.py
[bugfix] Fix error in imagecopy_self.py

Family is not used and since pyflakes 2.2.0 it produces an error

Change-Id: I8b8164bcffb948f348ff7370a969e1b934861d8f

PersianWikipedia/pywikibot-core,wikimedia/pywikibot-core,wikimedia/pywikibot-core