AUI-1318 Rewriting aui-image-viewer