An exhibition at the Metropolitan Museum looks at the profound role Maine played in peripatetic artist's life and work