remove max_photos