Updating profile pic logic on home page