change for removing the duplicated photos