Fix memset size in getPixel()