Fix preloading images