David McIlwain, of Ugg Mere Court Road, filmed the teenager at Jubilee Park, in Huntingdon, whilst he was using the toilet in June last year. Appearing at Huntingdon Crown Court, on Friday, it was revealed that the victim had gone in to use the facility before spotting a phone being held over the top of the cubicle. Charles Myatt, prosecuting, said: The victim looked to his left and saw a mobile phone over the top of the cubicle; he thought one of his friends was messing around. The court heard that McIlwain was then confronted by the teenager and challenged to show if anything had been filmed. The defendant quite reluctantly brought up the camera roll and there were two videos of him [the victim] urinating, Mr Myatt added. McIlwain deleted the videos before leaving the park, in Kings Ripton Road, in a hurry. The defendant got in his car, leaving the car park in something of a hurry, down the wrong side of the car park, before turning left and disappearing, said Mr Myatt. Judge Jonathan Cooper heard the offence had added a lot of stress to the victims life, and that it had made him scared when using public toilets. In mitigation it was said that McIlwain had left the park in a hurry because he had suffered a panic attack and left without any of his belongings, before pulling into a lay-by and sleeping for a few hours as a result of the attack. Jason Stevens, defending, said: This whole incident and the court process has had an impact on him. He has buried his head in the sand he is struggling to come to terms with his behaviour. Mr Stevens told the court that McIlwain wasnt seeking sexual gratification from the video. Judge Cooper added that, in sentencing, he had taken into account the challenges in McIlwains life including his health and family issues. The 38-year-old admitted to a count of making an indecent image of a child at an earlier hearing. This is a case that would have involved some planning by you. You have in this case shown no evidence of repentance, Judge Cooper said. McIlwain was handed a 12-month prison sentence, and was also given a three-year criminal behaviour order.