serve two images and algorithm for ranking