Centering Dynamic JPEGs?

Hey there people. I’m looking to get a dynamically loaded jpeg centered correctly. I got a container MC for them to go to that works great, but for some reason I can’t figure a script to center them in that MC. All that ever happens is the default top left registration. Any ideas?

Thanks