Use image IDs insead of filenames