Load jpg into Target

Hello,
I have loaded a jpg into the target, but I would like it to be centered. I will be switching out the image frequently and I want the jpg to always be centered. But when loading it into the target it loads from the top left corner as most of you probably know. I have also loaded the jpg into an empty movie clip but I’m not sure what AS needs to be there to center that either. Here is my as for both of those:


//load Graphic Behavior
this.target.loadMovie("logo/logo.jpg");
//End Behavior

_root.createEmptyMovieClip("container",1);
container.loadMovie("logo/logo.jpg");
container._x = container._y = 50 ;