Image Deduplication in NodeJS