Reconstruction of X-ray sources from penumbral images