Flex Tile Component issue

hi guys

i am currently playing with flex and as3.I wanna create a image gallery using Flex.To do this i have used Tab Navigator component and Tile Component of Flash.Now the problem is when i am loading external jpg,png or gif into tile tile Component it Doesnt Tile it at all.it is displayed into the component bt doesnt tiled it.

what i have done is

a) Loading the image through Loader class
b)Create a new UIComponent Object
c)UIComponentInstance.addChild(LoaderInstance.content);
c)Tile Instance.addChild()UIComponentInstance)

images are displayed bt they are not properly aligned.Looking forward for ur help…