Fix thumbnail endpoint