What was the purpose of self-portraits in Renaissance art? Was this different from the purpose of art in previous generations?

What was the purpose of self-portraits in Renaissance art? Was this different from the purpose of art in previous generations?