Revert "Cleanup Filter.process_image a bit"

This reverts commit b5586102ed5ae4bb3f56c33f2dc9de56628fdd2b.