centering the images in template view controller