Using image loaded callback to prevent starting before images are loaded.