Gettting the full path of the image and not inserting duplicate.