Enabled targeting multiple account for image replication

The old code assumed that there could only be a single target account for image replication.