Mask JPEG with HTML5 Canvas