add canvas.toDataURL method