export image as base64