Preloader function for single-image assets