Tweaked jpeg-js library encoder to allow for RGB image data (rather than...

... assuming RGBA)

Now call with jpg.encode(imageData, quality, channels), channels defaults to 3.