Added paintGreen and invertPixel