Find the tweet url from media url

media

#1

Example:

Media URL: https://pbs.twimg.com/media/C86oCWIXUAgtSJ9.jpg
Tweet URL: https://twitter.com/marioquartz/status/850802200582524928

How media filename relationates with the tweet id?
I have various images and need the tweet url to find the user and other data. And Google Images dont find the tweet.

Other example:
https://pbs.twimg.com/media/C_LW4t3UAAAOZFa.jpg:large
This image must have been uploaded by a account nintendo-related, but who?