I thought `<=` in this context meant that the size was constrained to not exceed `maxThumbSize`?

`777` is weird, it just needed to be < 1,000. Not sure how values are supposed to be chosen, figured I'd pick one that still gave me room in the spaces in between.