A simple preloader for layers