Add examples for converting image to base64

Closes #16 and #17