getPixel method

closes #44