fix issue#3611:addImageAsync  bad judgment of generate image for the first ImageFile.