Post form data update dynamic image

Post form data update dynamic image

I've got a pretty simple form where a user can enter text, this data is used to generate an image (with the text on it)  - I've been trying to figure out how I can update an image on the screen via ajax/post. Can anyone help me out?