added loading.gif before loading images