Don't resolve image promise until it's loaded.