Add callback once images are loaded