diff --git a/README.md b/README.md
index 1de842c..d02628e 100644
--- a/README.md
+++ b/README.md
@@ -1,42 +1,76 @@
-# SillyBubble - Dynamic Chat Bubble Extension for SillyTavern
+# SillyBubble Chat Bubble Generator
-SillyBubble is a SillyTavern extension that enables AI models to generate dynamic chat bubble images with text. The extension provides a function that AI models can call to create properly formatted markdown image links with URL-encoded text parameters.
+SillyBubble is a package that includes both a SillyTavern extension for generating chat bubble images from AI responses and a PHP script for rendering those bubbles.
-## Features
+## Components
-- Provides a function for AI to generate markdown image links
-- Properly URL-encodes text parameters for image generation
-- Supports different bubble styles through style parameters
-- Configurable image service URL
-- Simple testing interface to preview bubble generation
+1. **SillyTavern Extension**: JavaScript extension that registers a function tool for AIs to generate bubble images
+2. **PHP Image Generator**: Server-side script that creates the actual images
-## Installation and Usage
+## Chat Bubble Image Generator (image.php)
-### Installation
+The `image.php` script is a standalone PHP application that generates chat bubble images from text. It uses the GD library to create PNG images dynamically.
-1. Install the extension using SillyTavern's built-in extension installer
-2. Configure the image service URL in the extension settings
+### Requirements
+
+- PHP 7.0+ with GD extension enabled
+- Web server (Apache, Nginx, etc.)
### Usage
-1. The extension registers a custom function `generateChatBubbleImage` that AI models can call
-2. When called, it returns a properly formatted markdown image link:
- ```markdown
- 
- ```
-3. The function accepts two parameters:
- - `text`: The text to display in the bubble (required)
- - `style`: The visual style of the bubble (optional)
+The script accepts the following GET parameters:
-## Prerequisites
+- `q`: The text to display (URL-encoded)
+- `style`: (Optional) The bubble style: `default`, `modern`, `retro`, or `minimal`
-- SillyTavern with custom function support
-- A properly configured image generation service that accepts text parameters
+Example URLs:
+```
+image.php?q=Hello%20World
+image.php?q=Hello%20World&style=modern
+```
-## Support and Contributions
+### Styles
-For support or to contribute to this project, please visit the [GitHub repository](https://github.com/crystal/SillyBubble) or open an issue.
+The image generator comes with several built-in styles:
+
+- **default**: Light gray background with dark text
+- **modern**: Blue background with white text
+- **retro**: Yellow background with dark text
+- **minimal**: White background with black text and no rounded corners
+
+### Integrating with SillyBubble Extension
+
+1. Place the `image.php` script on your web server
+2. Configure the SillyBubble extension to use the correct URL to your image.php script
+3. In the extension settings, set the "Image Service URL" to the path to your image.php script
+
+### Customizing
+
+You can customize the styles by editing the `$styles` array in the PHP script. Each style has parameters for:
+
+- `bg_color`: Background color [R, G, B]
+- `text_color`: Text color [R, G, B]
+- `border_color`: Border color [R, G, B]
+- `padding`: Padding around the text
+- `rounded`: Corner radius (0 for square corners)
+- `font_size`: Text size
+- `max_width`: Maximum bubble width
+- `line_height`: Spacing between lines
+- `font`: Path to a TTF font file
+
+### Fonts
+
+The script will look for TTF fonts in the `fonts` directory. If no fonts are found, it will fall back to using the built-in GD fonts.
+
+To add custom fonts:
+1. Create a `fonts` directory in the same location as the script
+2. Add `.ttf` font files to this directory
+3. Update the font paths in the `$styles` array if needed
+
+## Example/Demo Page
+
+The included `example-usage.html` file provides a simple interface for testing the image generator with different styles and messages.
## License
-MIT License
+This project is licensed under the MIT License.
\ No newline at end of file
diff --git a/example-usage.html b/example-usage.html
new file mode 100644
index 0000000..8aa51e0
--- /dev/null
+++ b/example-usage.html
@@ -0,0 +1,152 @@
+
+
+
+
+
+ SillyBubble Example
+
+
+
+
SillyBubble Image Generator Examples
+
+
+
Try It Yourself
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Markdown for this image:
+
+
+
+
+
+
+
Examples of Different Styles
+
+
+
Default:
+
+
+
+
Modern:
+
+
+
+
Retro:
+
+
+
+
Minimal:
+
+
+
+
+
+
+
Usage in SillyBubble Extension
+
To use this image generator with the SillyBubble extension, make sure your extension settings point to this script:
+
// In SillyBubble settings
+"image_service_url": "image.php"
+
+
The extension will automatically generate URLs like: