I wrote a multi process version of the image indexer. It is MUCH faster but I keep running into problematic jpegs that cause pHash and CImg to crash. Unfortunately it doesn't seem like there is a graceful way to handle the crash. I will play with this more as I have time.