playing with binary data in canvas