Added extraction of image identities that have been selected