Optimize tabbing

Did some profiling to find out where the time is being spent while tabbing through images.  Made some tweaks in the matplotlib image viewer to reduce the number of times the figure is redrawn.