FWIW Calibre (and others) use common WEB tools that are very forgiving of bad code.
A common
poor practice is
Code:
width: auto;
height: auto;
in the CSS for the image (style)
This is valid, just not ideal for e-readers.
Attach the CSS (Do NOT post the book unscrambled) and the line of code for a badly rendered image