Correlation between initial spatial anisotropy and final momentum anisotropies in relativistic heavy ion collisions