add pagination for image manager