Issue #12659: Apply noninteractive filters direct to drawable
This patch attempts resolve the bug-related issues noted in #12659 (closed)
When the user checks "Merge Filters" on interactive filters, we move the filter to the bottom of the stack so it applies directly onto the drawable (instead of merging the entire filter stack).
However, we did not do this reordering for non-interactive filters, resulting in incorrect output. This patch applies the same logic so that when you apply a filter like Invert, it affects the drawable only and does not cause problems for any existing NDE filters.