Fixed bug with viewing images.