Images have a physical size: px
But you code (CSS) may specify a percentage (of screen), causing the image to blow up to meet the setting.
Specifying
Height & Width (CSS) values in px (instead of % or Auto) exerts tight control
Or
Limiting the range with an additional max-height or max-width value
Using a SVG wrapper allows you to maintain Aspect ratio (the basic CSS will allow the image to distort to reach a limit
Time to learn the basics of HTML/CSS (as applies to EPUB). 97% of what you need is basic, it is only when you get tricky that you need Guru level CSS