make sure rendering image enclosures respect hide_image setting