Fix bug that was causing any 3d input image unusable after running the plugin.

The problem was the stack was being passed to the display image. Now a copy of the stack is used.