XML image loader with size readjustment

In short i am wondering if there is any way to determine an image files proportions and then manipulate them while importing them via XML,

i am attempting to create a scaleable interface that scales based on XML imported images proportions.

here is a link to an archived folder containing the modules and tutorials i am attempting to combine. braingiants_bounce2.fla is the flash that is combining them.

www.chaoti.com/photogallery_2004.zip

thanks again and again