Rewrote test code to generate separate test for each image. Requires nosetests.