The owner of the painting has donated it to Warsaw's National Museum after learning of its provenance.