Change how background pic is loaded

When we load the background picture from xml it will sometime look
destorted. So we should load it from code instead.