category image loop fixed