Changed the tech for image drawing

Now uses js context to draw the image into the canvas.