Fixing preloader for cached images