Engineering quantum correlations for m×n spatially encoded two-photons states