[AS2] photo gallery using flash and xml

I’ve done tutorial on
http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm
and it’s really great. But I have one question.

The size (height and width) of pictures given in example are the same. What to do if each of my image has different size, and I want them be displayed in ‘center’, instead of being aligned to the left.

I am not familiar with as2, but I do understand the syntax and all function, so maybe somebody would have some idea how to do this?

thanks in advance:)

p.s. sorry for my english but I am self-taught :>