Fixes onload when images are cached

Used example from this webkit hack
http://groups.google.com/group/jquery-dev/browse_thread/thread/eee6ab7b2
da50e1f