The script arranges collections of images into a brick pattern.