I have created a custom app for displaying organisation chart. But the images are not displayed because of cross domain authentication issue.
Before setting images you initiate a jQuery ajax call to the other domain. This will initiate the authentication process and subsequent references to elements in that domain will resolve automatically.
You can also set image using below script
$('#imgControlId').attr('src', _spPageContextInfo.siteAbsoluteUrl + '/_layouts/15/userphoto.aspx?accountname=' + userEmailAddress);