fixed plotGrid 1D error
Clean up plot image code. Now shared between plotSlice and plotImage