Hadronic interactions of ultra-high energy photons with protons and light nuclei in the dipole picture