Top/Center in UILoader

Right now I have an UILoader in my template.
When I load a picture it is places in middle/center of the UILoader, and scale the picture to either height or width.
If it fits the with, it would be nice to place it en top/center instead.
How to do that?