You’ll need to find a way to use width and height (values in px) on te img itself instead of inside the style. This will work:
<img height=”100” width=”100” src=”data:image/png;base64...”/>
Use either height or width to resize and keep the image ratio instead of stretching.