Scans a directory, finds duplicate images that exist, or that are being added, only keeps one.