Added fn iterator for images.
Fun scan line algorithm in test1.py.