Image to DataURL
preview of selected image
DataURL:

DataURL to image:
preview of dataURL

How to use