User photo can be written to thumbnailPhoto or jpegPhoto attributes. Attribute selection is performed in the User catalog > Active Directory > Advanced Settings section of the Indeed CM Setup Wizard.
Service account (servicecm) must have privileges to write the selected attribute (see Configuring the user catalog in Active Directory).
The size of photo uploaded to this attribute, cannot exceed 100 Kb.