Change preload image logic