Added image loading wait.