This supersedes my previous set of patches. The primary differnece is to not change the api to the filter generator. GOOD/BEST select the same filtering as my patch to Cairo does, and this patch will allow that code to be removed from Cairo.