Help me pls with this Line that I want to draw

Hello Everyone,
I’m trying to draw a line between 2 objects with the " Line Renderer" and when I set the Position on the script It draws In the incorrect place, here an Image

and this is my code :

using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;

public class Line : MonoBehaviour {

    private LineRenderer lineRenderer;
    private float counter;
    private float dist;

    //Inicio y fin
    public Image origin;
    public Image destination;
    //Velocidad con la que se va a dibujar
    public float lineDrawSpeed = 6f;

    // Use this for initialization
    void Start () {
        lineRenderer     = GetComponent<LineRenderer>();

        lineRenderer.SetPosition(0, origin.transform.position);
        lineRenderer.SetPosition(1, destination.transform.position);
        Debug.Log(origin.transform.position);
        Debug.Log(destination.transform.position);
        lineRenderer.SetWidth(.20f, .20f);

        dist             = Vector3.Distance(origin.transform.position, destination.transform.position);
    }
   
    // Update is called once per frame
    void Update () {
       
        /*if(counter < dist)
        {
            counter             = (.1f / lineDrawSpeed) + counter;
            float x             = Mathf.Lerp(0, dist, counter);

            Vector3 pointA         = origin.transform.position;
            Vector3 pointB         = destination.transform.position;

            Vector3 faithPoint    = x * Vector3.Normalize(pointB - pointA) + pointA;

            lineRenderer.SetPosition(1, faithPoint);
        }*/
    }
}

What’s Happening? thanks a lot If you want to talk about unity or this problem Here is my skype:
alfapa651

Greetings from Venezuela.
.- Dave

I only had a very quick look, but an initial guess would be to make sure the world space property is set to true on the line renderer