Asset timestamping and images referred in CSS

Rails appends ?mtime to asset paths, which is nice.

But how to coupe with images referred in css? Example:

background-image: url(../images/bg.gif);

Idea? Plugin?

Regards,
Piotr Włodarek