There actually does exist an API for pixelstacker now. You can try it out here:
It actually works pretty well on photos as well. Has a really good color matching algorithm, and is pretty fast.
This site's rules are too strict.