background img refactory