Pass only the current sample's caption to encode_prompt, and right-pad per-sample embeddings before concatenating.
Copy control images to avoid mutating the original list.