Add missing imports.
diff --git a/Lib/test/test_imageop.py b/Lib/test/test_imageop.py
index 9063b22..56320fb 100755
--- a/Lib/test/test_imageop.py
+++ b/Lib/test/test_imageop.py
@@ -180,6 +180,7 @@
     """return a tuple consisting of
        image (in 'imgfile' format) width and height
     """
+    import imgfile
     try:
         sizes = imgfile.getsizes(name)
     except imgfile.error: