add asyncimage function to image loading