only show loading image if view is Visible.