-Reworked the viewer to handle different image sizes.