For extra insurance in case the "display: none" fails, also enter the heading name as a "title: " instead of as text between open and closing tags. Then there is no text to accidentally reveal itself if the reader fails to honor the css.
Code:
<h2 class="invisible" title="Image 1" />
The TOC will display the entry as Image 1.