If you sold the app to the ad company, the terms of the sale are almost certainly going to prohibit you from building a competitor. You'd have to start a new venture in a different area.
Weird that their GitHub says "without ads", but the apps in the play store say contains ads. It looks like they're doing ads/paid model in the app store, are they ad-free from F-Droid?
The gallery app is superb.