At the toughest time of his life, the painter was helped by an unlikely soulmate