Convert an image to base64 data URI scheme