The 1877 oil painting was not seen for decades before its owner came forward.