Wouldn't a human have to go through thousands (or more) of illicit images and classify them in order to train the AI?
Other than that I have no idea how you would even be able to have the images to classify in the first place without running into problems.