Changed logic of calls to test for new image.