Remove unused variables. check loading image.

Remove unused variables. check loading image.