Fixed small bug in image viewer.