Updated unit_test to output figures of the input images and final Theta images.