Set `image.crossOrigin = 'Anonymous';` to avoid tainted canvas problem