bg image loop index count changed