Break code that extracts the image data from the tinymce markup into a separate function.
Finish up the initial implementation of properly updating the data.

* Only show images sizes if the selected attachment has those sizes
* Update linkTo when changing the type of url to use
* Update image url, width, and height when switching to a different attachment size