Design XHImageViewer api