Steps to reproduce
Preview code at P9853 at Czech Wikipedia (reporter used https://cs.wikipedia.org/w/index.php?title=James_Ogilvy_lord_Findlater).
Expected
Image stays under headline "Karlovy vary"
Observed
Image is in multiple places of the article. See screencast at https://drive.google.com/open?id=1RCOYoVpaphDypZL1AunQMAydLjvXpiGQ.
Browser details
UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
Mediawiki details
1.35.0-wmf.8