Detect and remove duplicate images from a dataset for deep learning