Update ImageViewer.java

Added code that causes the image to be centered in the image viewer.