remove LDAP from image