Increasing two-photon entangled dimensions by shaping input-beam profiles