admin: automatically resize editor based on contents
admin: open image properties dialog on image click

also jslinted