load all images in the beginning