getting pixel array working