Google could totally afford it, especially if the feature was hidden behind a button the user had to click, and not just run for every image search.
How does Adobe prevent Photoshop being used to draw offensive images? They don't... People understand that a tool can be used for good and bad.