Added debug code to list failure images