Update getPixel.cpp