A judge told him: 'If it was not for people like you there would not be a market place and harm caused to children'