added variable to removed duplicate images