@nikitonsky I'm not a real frontender, but shouldn't it work if you specify the natural height as the "height" img tag attribute, and then set up the scaling via CSS?