Fix image load listener not always called.