Switched image to base64