setPixel method

closes #45