Right, I see what you mean now. You're just changing the background image. Sorry, I was confused. I was thinking you were creating a new div with the new background image in an ajax response and then adding it to the dom.
I'm not sure I can help you here, sorry.