He 'surreptitiously, and for a sexual purpose, photographed children and adults' in a sexual manner, Sudbury judge says