This is in case the attribute is blank. In cases where the images are content managed and no image is supplied.

Maybe better in this case to go back up the chain of images so it shows something though