JavaScript Image constructor overload?
<p>A lot of scripts dynamically create images, such as</p>

<pre><code>            im = new Image();
            im.src = 'http://...';
</code></pre>

<p>I am looking for overloading of constructor for Image class with feature to add a reference of each newly created object to some array.</p>

<p>Let's say I have</p>

<pre><code>            var dynImages = new Array;
</code></pre>

<p>And then I want each new dynamically created image to be in my <code>dynImages</code> array, so then I can anytime access <code>src</code> of each of image that was created by <code>new Image()</code> by <code>dynImages</code>.</p>

<p>Possible?</p>
