CodeTwo Active Directory Photos can be used to manage user photos in hybrid environments in which mailboxes are stored on a local (on-premises) Exchange server.
Images added via the program will be visible in Exchange Online, Azure AD and associated services (SharePoint, Skype, Outlook on the web, etc.) only if you synchronize your on-premises AD to Azure AD. You can do this via a dedicated sync application such as MS Azure AD Connect.
To manage user photos in all other hybrid and cloud configurations, use CodeTwo User Photos for Office 365.