thumbnail generation endpoint