I released an open source library to remove metadata from images: https://github.com/fasouto/picscrub

Was more complex than I thought. Still missing support for some RAW formats and had to fix some bugs

I also created a website to showcase how it works -> https://picscrub.com/