A teacher whose classroom PC displayed pornographic images to school children faces up to 40 years imprisonment.…