Implement the HTML5 canvas tainting rules to prevent potential data leakage