High throughput in-memory database for temporary storage of images
Solution 1:
You could take a look at eXtremeDB. I work for the vendor (McObject), so hopefully this won't get flagged as 'commercial' since you asked for ideas. eXtremeDB has been used for facial and fingerprint recognition in access control systems. Not exactly the same use case, but perhaps similar enough to warrant a look.