Changed the approach of the windows() function. It
now takes an image object as an input and uses the
transform() method to do the resizing.

array_windows() returns a generator of numpy arrays
containing the greyscale image for each window.