Add image preview #70

@FND though you probably don't like #70, could you review the JS? Thanks :)
That's why I wanted your review: there should be a better way to position the cursor at the end of an input field than attaching another event handler, shouldn't it?