This expands upon the ideas in this article:
http://openmonkey.blogspot.com/2012/04/truly-responsive-css-sprites.html
Here, we show how to make Reuben Wilson's approach work with images of arbitrary sizes and locations in the file, instead of just a vertical strip.