cookie img now generates according to the level