React component for laying out an evenly spaced grid of images