add loading image code