using background thread to fetch the image