preload images when they change to prevent "blinking" when image is loading