Fix surface plot for integer arrays.
Start working on image viewer, dump cores on exit.