Currently, images are loaded without any widths pre-specified. This causes images in the grid to shift around as they are loaded, causing a bad user experience.
Images have a constant height of 250px, and the query to fetch thumbnails returns each thumbnail's dimensions. Using this, we can calculate the ratio and width to set each image's container to get rid of the layout shift.