Add base64 image conversion