modified how the bg image added to the DOM