There are GD functions that allow you to save an image object as a file in PHP. You could just create a temporary file and offer a link to it.