the putpixel function