added inpainting with a Mask.