How to change desktop background from OS X command line

I have 2 displays and it annoys me that I have to change the desktop background of each display individually. I always want the same wallpaper image on both screens.

So I wrote a small Ruby script to set the same desktop background image on all connected displays.

Recent entries