Automatically create media buttons for shortcodes.

Source: http://smartwebworker.com/491-wordpress-automatically-create-shortcode-buttons/