Adding MJPEG to the formats supported

Originally, RGB24 and YUV420 was supported and selected using a boolean. I changed to use a string variable and added support for MJPEG. Decoding of the image is not part of this library I assume.