Museum staff have shared the history of a rare Italian renaissance painting they managed to save from being sold overseas.