Fix thumbnail rendering