FIX: HTML5 canvas masks not working (closes #366)