TODO: base64(login img) to jiaja2