idk how but an idea: 1) hash the base64 2) convert all the base64 images into normal .pngs, save them all to the dic with the name=hashed base64. 3) can then normally refer to them from the dic?