Modfiy layout of images.