rearranged layout to make an image viewer in the center of the page