Flashing/disappearing imageOutput

It's really hard to reproduce your issue without sample data.

If you haven't resolved the issue, I would suggest replacing where all.data and all.means to load a single dataset that leads to your issue. (This may also mean you will need to pair down your menuItem options.)

That will bring this closer to a reproducible example.