I realized the image loading component I wrote didn't work so well for vertical images, so I had to predetermine the image height/width ratio when generating the thumbnails, then get those ratios and add some css styling to the thumbnail images depending on if they're horizontal or vertical. It was kind of a pain but now the image loading in works really nicely.
(+2hrs)