incorporated the enhancement to print the selected media's id in a hidden field
the beginnings of the ajax call to render the attachment url
more work on the rendering of thumbnails for the selected media