I got tired of hand-editing 200 ad variants in Photoshop, so I built an API that does it from one template