Similar to scripts/updateavatarurl.php. Works for groups. Again, I had to do some weird thing because using clone screwed up the find() iteration.