Added equals and hashcode methods to Pixel.