anchor.diff:          return anchor;
       }
   
  -    function add_embelm(data) {
  +    var tempData_array = [];
  +    var imageObj = null;
  +    var emblemImg = null;
  +
  +    function add_emblem_item(data) {
  +        if (imageObj === null) {
  +            emblemImg = new Konva.Image({
  +                width: 1000 * parseFloat(data.width) / parseFloat(data.rel_x),
  +                height: 1000 * parseFloat(data.height) / parseFloat(data.rel_y),
  +                x: 1000 * parseFloat(data.x) / parseFloat(data.rel_x),
  +                y: 1000 * parseFloat(data.y) / parseFloat(data.rel_y)
  +            });
  +
  +            LAYER.add(emblemImg);
  +
  +
  +            imageObj = new Image();
  +            imageObj.onload = function () {
  +                emblemImg.image(imageObj);
  +                LAYER.draw();
  +            };
  +        }
  +        emblemImg.width(1000 * parseFloat(data.width) / parseFloat(data.rel_x));
  +        emblemImg.height(1000 * parseFloat(data.height) / parseFloat(data.rel_y));
  +        emblemImg.x(1000 * parseFloat(data.x) / parseFloat(data.rel_x));
  +        emblemImg.y(1000 * parseFloat(data.y) / parseFloat(data.rel_y));
  +        imageObj.src = data['url'];
   
       }
   
       function get_emblems_placement(pr, container) {
  +
  +        tempData_array = [];
   
           $.ajax({
               url: '/catalog/product/emblems/' + pr,
  
positive.code:             success: function (data) {
                  console.log(data);
                  variation_img = true;
                  load_p1(data, data['source_p'], emblem, n_logo || true)
              }
          });
  
negative.code:                 y: stage_ov.height() * y / s_h
              });
  
              LAYER.add(baseImg);
              LAYER.add(logoGroup);
              logoGroup.add(logoImg);
  
              var imageObj1 = new Image();
              imageObj1.onload = function () {
                  baseImg.image(imageObj1);
                  LAYER.draw();
              };
              imageObj1.src = data['images'][0]['url']['https'];
  
              var imageObj2 = new Image();
              imageObj2.onload = function () {
                  logoImg.image(imageObj2);
                  LAYER.draw();
                  imageObj2.width = stage_ov.width() * width / s_w;
                  imageObj2.height = stage_ov.height() * height / s_h;
              };
  