Added directory hashing and not storing photos that already exist