There are a couple of things you can do. First, set the
image's visible property to false. Then add an event listener for
"complete" - this will be fired when the image data has been
loaded. Once the event handler has been called, you get the image's
content's width and height and then set the image's visible
property to true.