Implement color tolerance for trim
Fixed autocorrect snafu and added null check.
Merge pull request #21 from atgheb/trim

Implement color tolerance for trim