Adds pixel array class with some useful methods