Fixed event handlers.
Only resize image if it exceeds max image size
Simple support for imgur links

Needs a better regexp
Fix/Hack for handleBeforeShow

Why doesn't this work with only the return?
Fix indenting
Merge branch 'pull-43-warcode-inline-images-fix' into dev