Added preProcess function

preProcess takes in an image and splits it into RGBA values, and copies
that array to the device.