Xml photo galery custom

Is there any way to modify the code from the xml-flash photo galery tutorial, so that every time the image changes, the flash file take the size of the pictures.