Added tests, a helper and some docs for the data URI code provided by shurcooL, many thanks again.