Saucy >>> Unobtrusive Styling Plugin

The idea is to use javascript to style DOM elements using images
rendered according to the certain style rules also specified in the
HTML. This normally involves pointing the background image to the
rendering script on the server using RMagick.

It's currently available as a rails plugin :

ruby script/plugin install

read more here :