Police officer avoids jail after downloading 8,000 indecent images of children