The ideal situation would be to have all media content synchornized on Google Drive or any other cloud solution, you can choose to be updated daily
If you didn`t synchornize it, you can download a recovery app, there are plenty in Google Store and start recovering your pics