Implemented ability to use a canvas only instead of rendering an image

I have added the ability to pass a canvas instead of an image to the library, in which the barcode gets rendered.  All functionality for passing an image and rendering the output to, is kept untouched. I have just improved the test if jQuery is present.