Preload images before animating.