Corrected a bug where the data window of an image is displayed incorrectly in the ImageViewer.
Simplified some arithmetic.
Merge pull request #744 from goddardl/ImageViewerUiFix

Image Viewer UI Fix