React component for creating an evenly spaced grid of images