Sounds like one of the features of my Avatar Privacy plugin (the other being consent management, local avatars, and more secure hashing functions).