Add output width settings.

This PR is by far ok to me.

But it gives food for though I hope.

We probably need to rewrite createImageHtml or am I missing something?