Gallary setting for whatsapp
You cannot avoid this duplication of photos as all the photos are treated as different files by Android. However, you can use a third party app, like Clone Buster to remove all duplicate files from time to time.