set the backgroundImage property only if it is available