That CSS could be considered suboptimal or might be some kind of compromise. I’m on the hoof but perhaps it’s currently enforcing 16:9. Not great for square logos
I wonder if height could be set to auto? (Although that might present challenges for portrait images)