Added scaled comparison function in Pixel class.