Several improvements to showing images.