refactored shapeMode to use pixel array
refactored slitMode to use pixelArray
um wrong branch oh well about 2 merge