input:the input image
mask:a mask, potentially from a 'draw' module
output:the output image
