anchor.diff:              annotations[i].style.top = (offsetTop + oldLeft) + units;
               annotations[i].style.left = (offsetLeft + img_bound - parseFloat(annotations[i].style.width) - oldTop) + units;
           }
  -
       }
   
     }
  
positive.code: 
    function rotate() {
        var annotations = document.getElementsByClassName("annotation_holder");
        var annotation_grid = document.getElementById("annotation_grid");
  //      var annotation_grid_value = JSON.parse(annotation_grid.value)
  
        angle += 90;
        if (angle == 360) angle = 0;
  
        var units = "px"
  
        var img_bound = 100;
        if (annotation_type == ANNOTATION_TYPES.IMAGE)
        {
            var img_preview = document.getElementById("image_preview");
            if (angle == 90 || angle == 270)
            {
                img_bound = parseFloat(img_preview.height);
            }
            else
            {
                img_bound = parseFloat(img_preview.width);
            }
        }
  
      if (annotation_type === ANNOTATION_TYPES.PDF)
      {
          units = "%";
          //        console.log(annotations.length);
          PDFView.rotatePages(90);
  //        console.log(annotations.length);
  
negative.code:     }
      else if (annotation_type == ANNOTATION_TYPES.IMAGE)
      {
          var img_bound;
          var img_preview = document.getElementById("image_preview");
          if (angle == 90 || angle == 270)
          {
              img_bound = parseFloat(img_preview.height);
          }
          else
          {
              img_bound = parseFloat(img_preview.width);
          }
          var units = "px"
  
          //todo: get annotation_holders and change px
  
        var bounding_rect = image_preview.getBoundingClientRect();
        var half_width = bounding_rect.width/2;
  