A 37-year-old man from Bradford has been sentenced after he was found to have indecent images of children.