I've gotten a very early version of the game working!
Right now I'm downloading all the pictures manually and adding them both to the images folder and their metadata to my JSON database.
Each image has an id (so I can sort them), the name of the anime girl, her origin (Anime, Visual Novel...) and its path so the script can find them.
In the end I've resorted to hosting the images on the server itself, it'll probably be okay if I don't surpass 2GB or so.
The next thing I should do would be adding a couple more images and getting the score system to permanently remember.