When a media image is inserted in the wysiwyg editor, it gets themed using the file-entity template.
It therefore gets an h2 tag added which is visibly hidden. I have no idea why someone thought this was a desirable thing to do, but it is an accessibility fail, and also means the image will appear in the table of contents for that page.
Fix is to copy file-entity.tpl.php into the theme - rename it as file--image.tpl.php and remove the offending h2 tag.
When a media image is inserted in the wysiwyg editor, it gets themed using the file-entity template.
It therefore gets an h2 tag added which is visibly hidden. I have no idea why someone thought this was a desirable thing to do, but it is an accessibility fail, and also means the image will appear in the table of contents for that page.
Fix is to copy file-entity.tpl.php into the theme - rename it as file--image.tpl.php and remove the offending h2 tag.