Added setDataURL and some comments.