You can use these two commands to set the Gnome desktop background:
gconftool-2 -t str --set /desktop/gnome/background/picture_filename /path/pic.png gconftool-2 -t str --set /desktop/gnome/background/picture_options "centered" |
This will put the picture in the center. If you want to fill the background with the picture use stretched.