changes references to background images so the urls are drawn correctly