After you delete a pic it normally stays in the trash for 30 days, where you have a chance to recover it until then (Settings>Battery and Device Care>Storage>Trash). Same with text messages and calendar items. However, if you go into the trash and also delete it from there I think you're out of luck on getting it back.
If it is a really, really important pic you might be able to take it to a professional and see if they can do a recovery but they'll charge you a bit for the service, whether they can recover the pic or not.