added preload function for gifs