Remove duplicated images from a path