                          img_new[m,n,i] = 0
                      elif temp > 255:
                          img_new[m,n,i] = 255
                      else:
                          img_new[m,n,i] = temp
  
      def smooth_mask(self,img_old,img_new):
          w,h,c = img_new.shape
          crop = slice(0,w)
          mask = numpy.zeros_like(img_new)
 
</s> remove                         img_new[m,n,i] = 255
 </s> add                         new_face[int_h, int_w, i] = 255 </s> remove                         img_new[m,n,i] = 0
 </s> add                         new_face[int_h, int_w, i] = 0 </s> remove     def smooth_mask(self,img_old,img_new):
        w,h,c = img_new.shape
        crop = slice(0,w)
        mask = numpy.zeros_like(img_new)
        mask[h//15:-h//15,w//15:-w//15,:] = 255
        mask = cv2.GaussianBlur(mask,(15,15),10)
        img_new[crop,crop] = mask/255*img_new + (1-mask/255)*img_old
 </s> add     @staticmethod
    def smooth_mask(old_face, new_face):
        """ Smooth the mask """
        width, height, _ = new_face.shape
        crop = slice(0, width)
        mask = np.zeros_like(new_face)
        mask[height // 15:-height // 15, width // 15:-width // 15, :] = 255
        mask = cv2.GaussianBlur(mask,  # pylint: disable=no-member
                                (15, 15),
                                10)
        new_face[crop, crop] = (mask / 255 * new_face +
                                (1 - mask / 255) * old_face) </s> remove             for m in range(img_new.shape[0]):
                for n in range(img_new.shape[1]):
                    temp = (img_new[m,n,i] + diff_int)
 </s> add             for int_h in range(new_face.shape[0]):
                for int_w in range(new_face.shape[1]):
                    temp = (new_face[int_h, int_w, i] + diff_int) </s> remove     def adjust_avg_color(self,img_old,img_new):
        w,h,c = img_new.shape
        for i in range(img_new.shape[-1]):
            old_avg = img_old[:, :, i].mean()
            new_avg = img_new[:, :, i].mean()
 </s> add     @staticmethod
    def adjust_avg_color(old_face, new_face):
        """ Perform average color adjustment """
        for i in range(new_face.shape[-1]):
            old_avg = old_face[:, :, i].mean()
            new_avg = new_face[:, :, i].mean()
                        new_face[int_h, int_w, i] = temp
                          img_new[m,n,i] = 0
                      elif temp > 255:
                          img_new[m,n,i] = 255
                      else:
                        new_face[int_h, int_w, i] = temp
  
      def smooth_mask(self,img_old,img_new):
          w,h,c = img_new.shape
          crop = slice(0,w)
          mask = numpy.zeros_like(img_new)
keep keep keep keep replace keep keep keep keep keep
 Fix convert-adjust (#531)

* Add dimensions to alignments + refactor

* Add frame_dims + funcs to DetectFaces. Add alignments lib

* Convert Adjust working

* Refactor and tidy up 
plugins/convert/Convert_Adjust.py