Minor bugfix when viewing images.