image.onload = function () {
                        count++;
                        if (count >= images.length) {
                            self.onComplete();
                        }