Adding maximum inline image width to chat window

There is now a maximum inline image width property; images get scaled proportionally in the window. It's an app setting and can be config'd on the settings window. Boom.

Also, looks like I'm committing in some of your own changes?