Who i can rotate new UI Image element?

I’m creating a UI compass. I need to rotate the arrow after the Player. How can I get access to the rotation of the image? Tried this:

public RectTransform Arrow;
public GameObject Player;
void Update () {
Arrow.Rotate = new Vector3(Arrow.rotation.x, Arrow.rotation.y, Player.transform.rotation.z);
}

it’s doesn’t working

I myself have found a solution:
Vector3 PlayerRot
PlayerRot = Player.eulerAngles;
Arrow.transform.rotation = Quaternion.Euler (0, 0, PlayerRot.y);

Just to add. You might want to use localRotation in case your Canvas is rotated.