A former primary school teacher who admitted possessing more than 100,000 child pornography images has been warned he faces jail.
Simon McElwain, 49, formerly of Swineshead, Lincolnshire, now of Horsell Moor, Woking, Surrey, admitted owning 103,450 of the images.
He was forced to step down as owner and head of the privately-run Conway School in Boston after his arrest in 2004.
Sentencing at Lincoln Crown Court was adjourned until next month.
On Tuesday McElwain admitted to owning the pictures of children on computer discs in November 2004.
He transferred the images to the discs after someone else downloaded them from the internet, the court heard.
He also admitted two further charges of possessing indecent photographs of children on floppy disks and CD-ROMs in November 2004 and two more of making indecent photos of children in April of that year.
McElwain was placed on the sex offenders register.
Judge Peter Clark told him all sentencing options, including a custodial sentence, would be considered.
In a statement, Conway School, which is now under different owners, said it had no relationship with McElwain, adding that he sold the school in 2005.