Implemented drawing functionality using HTML5 Canvas