Convert an image to base64

Converts images into base64-encoded strings to embed them directly into code