Add leptonica's pixConvertRGBToGray to the api, and expose via Pix