Added support for pickling photo hashes and to skip metadata update if photo is cached
Write photo hash to disk, added options to refresh them