Use modified width/height as filter buffer size.

Fixes scale2x segfault.
Fixup filters.