Changed pArrays[0] to pImage; the old version was incorrect since it was printing the previous array and could be null