Change to dataUri to avoid error and add options.