Shoddy initial implementation of C-based filters.
Fix behavior when cropping a multi-frame image.