I´m by no means an expert on programming for Haiku, but here is what I´ve found. By looking at the source code for the backgrounds preferences application (where you can set the background image) I saw that it is done via the Tracker (that´s the file manager that also manages the desktop).