missing import in img.py