Wrapped alt attr in if/else for image.