Avoid duplicate GIFs using md5 hashes