Like I answered in https://forum.mendix.com/link/questions/113200: take module Person as an example. Copying code is always way faster then creating it yourself from scratch.
Hi,
You need to do few thing links:
1. First In domain module create two entity LOGIN and IMAGE.
2. Call microflow as give below image, and in microflow call retrieve object active, in entity select login entity from database, and in XPath constraint call CurrentUser, don't forget in End event return object and same entity as you pass in retrieve object, and in return value, pass $USER.
3. Take data-view widget in data-view entity, select image entity from domain, use association select user full-Name attribute and image.
Main Screenshot.
Hope that helps you.