The affine part of the Picard scheme