Authorities said thousands of images and videos were discovered, including some he had edited with photos of other children.