Fix for cached images

This fixes the 'onload' event for cached images. Used example from this webkit hack
http://groups.google.com/group/jquery-dev/browse_thread/thread/eee6ab7b2
da50e1f