Updated views to show profile image and updated code with better comments