support of dataurl images
applied proposals of #267 by @diegocr
Merge pull request #267 from woolfg/dataurl

support of dataurl images