Added transmit function.

This function takes the output image and transmits it over SPI.