No need for the $content_width global anymore.
Use wp_expand_dimensions() to resize the image dimensions.  Add in a fix for Spotify embeds that needs testing.