fix bug: the loader image disappeared when the image changed