When writing a comment, click on the gray avatar image to upload a profile photo:

Alternatively, you can sign-in with your Facebook/Twitter/Google+, and the Comments application will take your photo from your social network profile.