Adjust layout of images.