FIX: memory leak in FullscreenViewer because of poor memory management in imageViewer