Adding fillPixel function