changing bg image centering logic