Image function fixup

This branches fixes a couple of small and large issues with the `ImageFunction` class.  Most notably, the `flip_dual` and `flip_quad` tests now work with VTK-6.  The CI won't really test this, but I have confirmed with @aeslaughter that it still works on VTK-5 as well.

Refs #3544.