XML Photo Gallery

i am using a gallery similar to the tutorial one on kirupa. some of the photos are vertical and some are horizontal. By default, all the externally loaded images load in the content movie at the top left. I was wondering if there is a way to make it so the photos all load center justified in the middle of the document. is there a way to code it or use registration points to rectify my dilemma? please help.