Improve /showimage to include a default size for the image

If no width/height are passed, it uses a default width of 400 pixels and scales the image to match this. I don't know if there's any way to get the width of the user's chat window but on my smallish laptop 400 pixels is almost the whole width.

Also fixed a problem with variable scope. ('targets' should be locally scoped, not global)