Paul Beckwith, a former North Yorkshire Police officer, has admitted three counts of having indecent images of children and five counts of voyeurism.