Rewrote whenImageReady. A lot easier to understand, and it uses jQuery's .load to hopefully work better across all browsers