From an anxious Lucian Freud to an enigmatic Rembrandt and a noirish Cindy Sherman, these self-portraits take the selfie to a new artistic level, writes Jonathan Jones