Fixing/regolding the flip_quad test.

There were a lot of issues with this test, but it now works with VTK-6
and produces a 4-fold symmetric image, which was the original intention
of the test.

Refs #3544.
Unifying the VTK-5 and VTK-6 code paths in the ImageFunction class.

Refs #3544.