Added optional instance variables x, y, and label in Pixel class.