setup CS, accessing pixel array data