added paging and search to images