Yeah, I did it this way so that the images are preloaded. But perhaps the performance gain is trivial?