Some html contains wrong width and height for images

(cherry picked from commit 06d747d1c3651bdbe7aade24c5889779a999be50)
temporary tests fix