Jquery modal window with image loader and prev/next buttons