def unittest(data_path, temp_path):
    import image
    from image import SEARCH_EX, SEARCH_DS
    img = image.Image("unittest/data/graffiti.pgm", copy_to_fb=True)
    temp = image.Image("unittest/data/template.pgm", copy_to_fb=False)
    r = img.find_template(temp, 0.70, step=4, search=SEARCH_DS)
    return r == (150, 128, 40, 40)

@@ -46,16 +46,29 @@
 t image%0A
+    try:%0A    
     from
@@ -102,16 +102,91 @@
 ARCH_DS%0A
+    except Exception as e:%0A        raise Exception(%22function unavailable%22)%0A
     img 

Update unit test.