Fixed leaf filter functionality to separate brik and jp2 filtering correctly.