A utility function that renders a responsive list/grid of images