Allow pagination in ImageRepository.all