how are you making backups of your iPhone? Did you make a backup in iTunes to a computer before you installed the iOS upgrade? Or an iCloud backup of the iPhone, even if you do not use cloud Photo Library? Then restore the iPhone from the backup.
See: About backups for iOS devices - Apple Support
and: Restore your iPhone, iPad, or iPod touch from a backup - Apple Support