Fix thumbnail generator