use magic to prevent sporadic canvas antialiasing - fixes #46 #49 #59 #61