John,
Would it work to test for CSS backgrounds that start with "http" or a forward slash and skip rewriting them?
Attached is a build that excludes the urls with http[s] or start with /