document amdquery
refactor loadingImage