Add support for Gamma.  Fix compilation error for MT.  Made the code a little more managable for using the Filters.