Fix #1

When closing image when image was loading then the onImageLoadEnd
function was not called and in case of preloading icon, the icon stayed
on the device screen.