I suspect that's the wonderful world of the asynchronous in AJAX at work. There are probably ways around it, but they're usually very hard to do. In this case we might be able to use the image dimensions to make sure the size is right even before the image loads. But even that might be unneseccarily delayed.
Tim
Tim