Building a web-scale image similarity search system