Your image has two style tags... the first one will be ignored:
<img style="width:50px; height=" autoalt="No alt text provided for this image" id="ember43" loading="lazy" src="https://media.licdn.com/dms/image/D4E12AQGP40Gx347Lyw/article-inline_image-shrink_1000_1488/0/1678714121121?e=1684368000&v=beta&t=F0KMkmsp7r3agMZQN_Yp8u2XJPX37h78ZeZPcdtNbGU" style="height: 375px; width: 500px;">
This is the one that would be active:
style="height: 375px; width: 500px;"
Remove that and your other style tag should work.