This can do the pre-loading of imgs, and set the imgs on the center of container.