Fix thumbnail size generation