added preload of images