Thread the loading of images