Photo Gallery question

I am using the tutorial for the photo gallery using xml
http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

How would I modify the picture area so that no matter what format, portrait or landscape, it would load from the center and not from the top left of the image?