The tests appear to be passing but you have a circular import.

Try moving the import of `integral_image` inside this function where it is used. That will probably fix the circular import.