jpeg-handler: Fix issue with libjpeg62.
mandelbrot-example: Create 3 channel image instead of 4 channel image
during jpg creation. The previous version can not be handled by all
variants of libjpeg.