Cortical modularity and spatial localization