You can try to create method in the Master page code behind say changeBG() and then call that method in the content page like:
this.master.changeBG();
In the changeBG() of master page code behind write the background changing code like:
public void changeBG()
{
bodyTag.Atributes.Add("background-image:", "url('gifs/page-body-background.gif'");
}
Hope it helps :)