When I say "error", I mean that if the browser takes more than 500ms, then the image(s) won't be resized, right?  Why not have this code be event driven and be certain that it's going to work - what is the downside to this approach?