Implement color tolerance for trim

After a bit of trial and error I figured out how color tolerance works and how it's supposed to be structured in the url.