You can use the Background Image setting inside the Customizer to set the image for light mode. And add some CSS to change the image URL for dark mode (set the url to an image that you’ve uploaded on your site):
.respect-color-scheme-preference.is-dark-theme body { background-image: url(https://yourdomain.com/image.jpg); }