The call to `done()` needs to be outside the `img.complete` block.