Will the photos be saved if you install Windows 8?
If you use Windows' upgrade tool, you can choose / define what to keep and what not to keep, so providing you choose to keep your photos, then yes -- they will.
When you install another OS to windows 8, that basically formats your hard drive. Which means no data will be saved. To resolve this problem, get a SD card then import the photos to it. Once your Windows 8 Operating System is downloaded, put in the SD card then import the photos into the computer.