Centering an image

[COLOR=#000000]I am using the following tutorial to build my own photogallery.[/COLOR]

However, I have both horizontal and vertical images, so the horizontal image looks centered but the vertical image looks left aligned because the common point for all images is in the upper left corner.

Any suggestions on how I can center the images within my movieclip? Thank you.