fixed logic for recognizing different pixel #23
Merge pull request #27 from stefanjudis/bug/23-diff-check

fixed logic for recognizing different pixel #23