It was not a victimless crime, the judge said, saying that it was important to remember that at the end of the lens was "a little kid who has been abused" in the worst way imaginable.
He also used an online chat app in February this year to talk to another person about their desires to "touch little kids".
Bainton, of Christchurch, earlier pleaded guilty to five representative charges of possession of an objectionable publication.
The court heard that Bainton was considered a medium risk of reoffending, still lived at home, and recognised he needed help.
Defence counsel Elizabeth Bulger raised efforts that Bainton had made off his own back at rehabilitation, which the judge accepted, was to his credit.
Bainton was sentenced to three years in jail, and put on the child sex offenders' register.