Add HTML elements for insertion, implement image size values

The former is yet untested, but there's shouldn't be anything that would
stop it from working once the code is in place. I chose to do the image
sizes first because of adobe/brackets#6707, which inspired this rewrite.