0012198: improve contact photo ldap sync