  
      def get_image_mask(self, image, new_face, face_detected, mat, image_size):
  
          face_mask = numpy.zeros(image.shape,dtype=float)
          if 'Rect' in self.maskType:
              face_src = numpy.ones(new_face.shape,dtype=float) 
              cv2.warpAffine( face_src, mat, image_size, face_mask, cv2.WARP_INVERSE_MAP, cv2.BORDER_TRANSPARENT )
  
          hull_mask = numpy.zeros(image.shape,dtype=float)
          if 'Hull' in self.maskType:
              hull = cv2.convexHull( numpy.array( face_detected.landmarksAsXY() ).reshape((-1,2)).astype(int) ).flatten().reshape( (-1,2) )
 
</s> remove         if 'Hull' in self.maskType:
 </s> add         if 'hull' in self.mask_type:
 </s> remove         if self.maskType == 'Rect':
 </s> add         if self.mask_type == 'rect':
 </s> remove         if self.seamlessClone:
 </s> add         if self.seamless_clone:
 </s> remove         elif self.maskType == 'FaceHull':
 </s> add         elif self.mask_type == 'faceHull':
 </s> remove         self.blurSize = 2
        self.seamlessClone = False
        self.maskType = 'Rect' # Choose in 'FaceHullAndRect','FaceHull','Rect'
 </s> add         if erosion_kernel_size is not None:
            self.erosion_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(erosion_kernel_size,erosion_kernel_size))

        self.blur_size = blur_size
        self.seamless_clone = seamless_clone
        self.mask_type = mask_type.lower() # Choose in 'FaceHullAndRect','FaceHull','Rect'

        if 'rect' in self.mask_type:
            face_src = numpy.ones(new_face.shape,dtype=float)

  
      def get_image_mask(self, image, new_face, face_detected, mat, image_size):
  
          face_mask = numpy.zeros(image.shape,dtype=float)
        if 'rect' in self.mask_type:
            face_src = numpy.ones(new_face.shape,dtype=float)
        if 'rect' in self.mask_type:
            face_src = numpy.ones(new_face.shape,dtype=float)
              cv2.warpAffine( face_src, mat, image_size, face_mask, cv2.WARP_INVERSE_MAP, cv2.BORDER_TRANSPARENT )
  
          hull_mask = numpy.zeros(image.shape,dtype=float)
          if 'Hull' in self.maskType:
              hull = cv2.convexHull( numpy.array( face_detected.landmarksAsXY() ).reshape((-1,2)).astype(int) ).flatten().reshape( (-1,2) )
keep keep keep keep replace replace keep keep keep keep keep
 extended arguments for convert.py (#89)

* extended arguments for convert re https://github.com/deepfakes/faceswap/issues/85

* helptext for extended arguments.

* changed default mask type to facehullandrect 
plugins/Convert_Masked.py