threading when loading the image