updated image preloading