Though I don't think it will have a large impact, this should likely be `getThumbnailByLongestSide` rather than `getThumbnail`.