How to let text determine height of image in same parent div?

How do I get an image (element) to always be the same height of text?

I am trying to get an image to take up 100% of a parent div where the parent divs height should be determined only by the text which is next to the image.

The image is of a shape which I don’t want to be cropped, so using it as a background image of a div would not work as the div doesn’t respect the ratio of the image as I understand it.

Is there any way to make this happen?

Here is my read only link: Webflow - TVGx

And here is a screenshot: