Losing a good photo can be quite traumatic, and it is easier to remove pictures that you might think. If you accidentally deleted a photo on your iPhone, there are several ways you can recover it. Let's take a look.
Here we will run through some of the ways you can restore a deleted photo, and while they may not all be specific to your situation, hopefully at least one will get your photo back where it belongs to your photo library.
Restore a recent photo
The first and easiest place to see is on your iPhone. Open the Photos app and then tap "Album" at the bottom of the screen.
Next, scroll down at the bottom of the screen and press "Recently Deleted". Here, you'll see all the photos and videos you deleted less than about 40 days ago. Everything that is older than it will have been removed, but this is definitely the first place to check.
If your photo is there, tap it and then tap "Reset". 
Recover photos from a backup
If you plug your iPhone into a computer to back it up through iTunes, some tools may pop into those backups and allow you to extract individual files from them.
One such tool is iBackup Extractor, and it is available for both PC and Mac. There are similar apps out there, everything does the same thing – opens iOS backups created by iTunes and lets people interact with them. If you know that the photo you need to restore is included in an old iTunes backup, this may be a good option to take-e. Especially if the photo was deleted more than a month ago.
Restore your iPhone from an iTunes Backup
If you prefer not to use a third-party app to restore your photo, you can also completely restore your iPhone with an old backup. It should be noted that if you go this route, you will lose data that was created or changed since the backup was created. We strongly recommend that you create a new backup before restoring anything, just to be safe.
Suppose you want to go this route, connect your iPhone to a computer and open iTunes if it doesn't open automatically. Then click on the icon of the device connected to your iPhone.
To start the recovery, click the "Restore Backup" button. You will now be prompted to select the backup you want to restore. Select it and then click "Restore Backup."
Your iPhone will now apply the previous backup and then restart.
Restore your iPhone from an iCloud backup
If you do not restore your iPhone via iTunes but use iCloud instead, then iTunes will reconnect, and you can then verify that your missing photo is present and correct. You can also restore from one of the previous backups. All the same precautions apply here, so we suggest again that you take a full iTunes backup before attempting to restore anything, only if that is the case.
With a new backup, record the setup app, and then press "General".
Next, press "Reset" at the bottom of the screen.
Click "Delete All Content and Settings". is asked to verify before something happens, but once you have done so, the recovery process will happen. Then your iPhone restarts, and you can set it as if it were a new iPhone. Then select the "Reset from iCloud Backup" option and be sure to select one from a time before you think the photo was deleted.