Do you want to remove gray border and background around images? If so, add this to Custom CSS under Graphene Display Options.
.wp-caption {
background: none !important;
border: none !important;
}
Regarding your second question, if you are using AddThis or Sharethis plugin, it appends some random characters to the URL for tracking purpose. You can disable it in that plugin settings.