ImageViewer: prevent flickering du to size changes on load and use event to correctly synchronize.