changed to canvas element instead of DOM-elements
drawing with canvas, not working from firefox