Mazking sure JS example shows that you should set the gray level to 12 befoer calling draw