Contextual weighting for vocabulary tree based image retrieval | Synapse