Preload images before showing them
Cleanup image preloading logic