Police officer caught with nearly 1,000 indecent images of children spared jail