Updated Code to Change Pixel Class