error found in putPixel, overlay changed to addPixel