add preview_images_delay setting, better handling of quit and clear image optimization in ImageDisplayer