Alpha testing for canvas and paint