image loop functionality only added