AUI-1294 Make aui-image-viewer responsive

This is making the aui-image-viewer responsive, resizing images properly when the window is resized in case they don't fit on the screen anymore.
The code respects any values the user passes to width/height though. If the width is specified it won't change again, even if it doesn't fit on the screen.