Your photo will appear next to your name when using discussions or sending messages by adding your photo to your profile within your personal settings.
Go to your name on the right of the main menu and click Edit Profile. You can add a photo here.
Read more about the types of photos you can add on the 'Adding your photo' page.