Add base64 encoder for images.