In preparation for real space studies of magnetic domains in a pump-probe setup at free-electron laser sources, it is necessary to develop an imaging method compatible with the linearly polarized radiation available at these sources. We present results from a prototype experiment performed at the synchrotron source BESSY II, using a modification of existing phase retrieval techniques. Our results show that it is possible to image magnetic domains in real space using linear polarized light, and we introduce the concept of a reliability map of our reconstructions using Gabor transforms.