Dr Peter King had almost 3,000 indecent images of children when he was arrested