Shift register init, getting image pixels

Initializing the shift register
Grabbing pixel from the image