You need to download your targeted images and number them. E.g if I have 500 images of girls in .jpg / .png or any format; I must name them 1 all the way to 500 (Any image format of course). You can create simple script to automatically name them or when mass downloading images set them to.
Main page! Each girl/image has their current rank rating and will be updated depending on whether they have lost or not; Using elo rating algorithm. The opponents are completely random however, I filter any case where two opponent is same girl. In that case, we randomise again.
Our version has an additional tab of leaderboards (Also customizable in code). Currently set to Top 10.
Feel free to fork and add any additional features or code improvements!