work in progress)paginatorion logic in image_manager