pixel mask test, abusing canvas