Help me create my Chat Widget to look like the Live Support Chat here

I would like to know how to have my chat plugin function like the chat here in the live demo are, specifically, the upload image option.