Spacey to play title character in 'Shrink'