Encode image into DataURI