Lines now stored in an array, allows for easier redrawing of the canvas

Instead of sending a snapshot of the canvas through toDataURL the users will now rely on redrawing the lines represented in an array. This will make it easier to introduce features such as resizing, undo/redo-buttons and scaling in the future.