def METHOD_NAME(mask_img,mask_expansion,blur =10):
     #only if image exist then try to open it
        # init_img_mask = Image.open(f"{init_img_dir}/{init_img_mask_name}")
        # if(payload['use_sharp_mask'] == False):# use blurry mask 
        iteration = mask_expansion
        dilated_img = applyDilation(mask_img,iteration)
        blurred_image = dilated_img.filter(ImageFilter.GaussianBlur(radius = blur))
        mask_with_border = reserveBorderPixels(mask_img,blurred_image)
        return mask_with_border