He was also ordered to register as a sex offender for five years and made subject to a sexual offences prevention order restricting his use of the internet.

At the original hearing it was said that Greenway had 806 images classed as being of level one, showing children naked or in indecent poses but without any sexual activity, which had been downloaded between December 2008 and March last year.

He also had 157 level two images of children involved in sexual activity by themselves or with other children.

But a further 78 images were of level four, showing adults engaging in penetrative sexual activity with children.

And there was one level five image, defined as showing a child being subjected to sadism or bestiality.

Greenway’s barrister Paul Harrison pointed out that ‘until today he has been of previous good character.’

Judge Alan Parker commented: “There are two issues.  One is the risk he presents to children; and the judge who sentences him will have to decide the length of the custodial sentence which will have to follow, and whether it is immediate or suspended.”

At the resumed hearing Judge Philip Gregory imposed two month prison terms for the first two offences, with six months in prison for each of the two more serious offences.

But he made them all concurrent and said that although they were serious matters, he was able to suspend the sentence.