A thought,
Could you define the picture width and height in the
xml document (or .txt since that is what you are using) and then flash can figure it out from there because is references the pictures width?
Not sure if it'll work but you can give it a whirl.