I'm assuming you can work out the mechanical mounting.
The old rectifier plugs into the bike harness. Do you want the new rect to plug in, or direct wire?
You will need to connect the yellow wire from the rect to the yellow wires in the Harness. Order won't matter.
The Wht/Red wire from Rect will go to the Red/Wht in the bike harness.
The remaining wire (Kinda looks like Wht with Black in the tiny pic) goes to the Green wire in the bike harness.
You will need the connector off the old rectifier if you choose the plug in route. Check the length required to go from the mounted position of the Rect to the bike harness connector. You can cut, strip, and splice wires from old to new. ( I recommend soldering and shrink sleeving of the butt or in-line twist splice.
More difficult, is trying the reuse the old connector pins on the new rect wires. Extract pins, open crimp, clean, re-crimp with or without solder, and reassemble pin back into connector.
You can also cut off the harness connector and splice wires directly onto them, going connector less, using but or in-line splice techniques.
Cheers,