put generateicons on img onload