Real-space collapse of a polariton condensate