JPEG compression used in cameracompress driver allows to compress only
24-bit images. This patch allows to compress images with depth 8 (grey)
and 32 bit. Both depths are converted to 24-bit depth.
Attached patch rejects my previous cameracompress.cc patch, since it
changes previously patched places in code the different way.