adding the loading iMage feature on complete image loading