Clean up media url