A former Dumfries man who repeatedly raped and sexually assaulted a little girl was caught after police found videos and photographs of the abuse on his mobile phone.
Detectives made the horrifying discovery after detaining Willliam Skeats, 55, in the town, in August, 2021.
The High Court in Edinburgh heard how officers found two explicit videos and 415 still images of Skeats abusing the child.