Fix thumbnail path generator