Support for other pixel formats.

Hey, I added support for pixel formats other than Mono8.  The only thing that you needed to do was adjust the size of the buffer based on the camera's pixel format.