Use the CSS 'fixed aspect ratio' trick so the viewer can be fluid-sized. Provide styles for switching view mode and zoom level.
Merging.