They told me to post a new question to the second part of the question.
Is there some way I can replace the first 8 integers in the multidimensional array with 8 integers of array that I created for example:
import Image
import numpy as np
im = Image.open("C:\Users\Jones\Pictures\1.jpg")
pix = im.load()
array=[0, 3, 38, 13, 7, 18, 3, 715]
r, g, b = np.array(im).T
print r[0:8]