While we are connecting the leading frontend technologies like Next js, Vue js , React etc with Net Suite, WordPress like headless sources, its important to know that to add background images to the frontend via backend.
In my scenario, i have to set the background image of a swiper carousel from the backend. The main thing to do in this scenario is to style the division we need to give background color inline. Then only we can fetch contents into these functions.
Use REST API custom end point to get the values from the backend.
Create a map function with the required parameters and style it inline.

By this way we can successfully accept contents from the backend and so as the background images as well.