scale thumbnails in compare page

image thumbnails now scale horizontally, vertically, or both within
their respective containers