Added visualization to the test driver and fixed an image loading bug.