Add functions for encoding images in base64
Encoding images in base64