Create movieclips based on jpeg size

i have a simple xml/flash portfolio script (similar to the one in the xml/flash) tutorial and the problem is my pics are not uniform in size.

this is probbaly an easy problem but how would i get flash to create a mc getting the size from either the xml (manually put it in the xml) or automatically get it from the jpeg??

thanks in advanve