The spatial, spectral and polarization properties of solar flare X-ray sources