PR-MaGIC: Prompt Refinement Via Mask Decoder Gradient Flow For In-Context Segmentation - Databubble