Fix: set timeout if image.onload is not trigger