added pixel color equals check function