Referenced:
https://europe.naverlabs.com/Research/Computer-Vision/Learning-Visual-Representations/Deep-Image-Retrieval/
Order database images by decreasing similarity to the query