implement class on img parent