Fixed pagination and the imageviewer.