changed images to base64