Overhaul of the image viewing mode.