Enhance the save function to save the identity photo as a base64 string.