Fix ImageViewer in VTK 6.1

Fixes #910 
Tested with VTK 5.8, 6.1 (current latest release), 6.2 (trunk)

All credits goes to @mdkus