The _done flag should not be needed. See comment on `img.complete` below.