Preload images and fix css