Added fix for duplicate images .

Added fix for duplicate images .