Add image preview #70

@FND though you probably don't like #70, could you review the JS? Thanks :)
I'm assuming the above was committed accidentally? AFAICT it doesn't belong into this commit.