          """ Add alpha channels to images and change to 
              transparent background """
          image = numpy.zeros((image_size[1], image_size[0], 4),
                              dtype=numpy.uint8)
          
          mask_b, mask_g, mask_r = cv2.split(image_mask)
          face_b, face_g, face_r = cv2.split(new_face)
  
          alpha_mask = numpy.ones(mask_b.shape, dtype=mask_b.dtype) * 50
          alpha_face = numpy.ones(face_b.shape, dtype=face_b.dtype) * 50
  
          image_mask = cv2.merge((mask_b, mask_g, mask_r, alpha_mask))
          new_face = cv2.merge((face_b, face_g, face_r, alpha_face))
          return image, new_face, image_mask
      
      def apply_new_face(self, image, new_face, image_mask, mat, image_size, size):
      
          if self.draw_transparent:
 
</s> remove 
 </s> add             print(unitMask.shape)
            print(new_image.shape)
            print(base_image.shape)
 </s> remove     rotation_matrix = cv2.getRotationMatrix2D(image_center, -1.*angle, 1.)
 </s> add     rotation_matrix = cv2.getRotationMatrix2D(  # pylint: disable=no-member
        image_center, -1.*angle, 1.)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)

          """ Add alpha channels to images and change to 
              transparent background """
          image = numpy.zeros((image_size[1], image_size[0], 4),
                              dtype=numpy.uint8)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)
        image_mask = add_alpha_channel(image_mask, 100)
        new_face = add_alpha_channel(new_face, 100)
          return image, new_face, image_mask
      
      def apply_new_face(self, image, new_face, image_mask, mat, image_size, size):
      
          if self.draw_transparent:
keep keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 add draw transparent to adjust. Disable seamless clone with -dt flag 
plugins/convert/Convert_Masked.py