In This tutorial. Getting Image url by endpoints.
Use /?__a=1&__d=dis for getting link.
Add above end points like this 
and now create onReq Component to get whole response.
Then put try catch block or code for json object.
JSONObject o1 = new JSONObject("_response"); 
To get whole response to o1 object.
Now add this code for image url.
image = o1.getJSONObject("graphql").getJSONObject("shortcode_media").getString("display_url"); 
Above code will give display url as image.
And String is image to catch content link.
Now compile and Enjoy.
Please subscribe my channel.