If a Tweet contains an image or Video, it usually contains the possibly_sensitive boolean, which is set to true if the user indicated that the image contains content for mature audience only.
I am not ware of a search flag for that, but you could filter it manually after getting the results from the search API this way.